package com.agriculture.monitor.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class PasswordRequest {

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    private String newPassword;


    /**
     * 久密码
     */
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
}
